package com.tensquare.qa.client;

import com.tensquare.qa.client.impl.LabelClientImpl;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by WF on 2020/7/29 14:48
 */
@FeignClient(value="TENSQUARE-BASE",fallback = LabelClientImpl.class)    //这里是需要调用的微服务的名称
public interface LabelClient {
    @GetMapping("/label/{id}")
    Result getById(@PathVariable("id") String id);
}
